/*
 * Copyright (C) 2011-present ShenZhen iBOXCHAIN Information Technology Co.,Ltd.
 *
 * All right reserved.
 *
 * This software is the confidential and proprietary
 * information of iBOXCHAIN Company of China.
 * ("Confidential Information"). You shall not disclose
 * such Confidential Information and shall use it only
 * in accordance with the terms of the contract agreement
 * you entered into with iBOXCHAIN inc.
 */
package com.example.wac.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * <p>
 * 登陆信息表
 * </p>
 *
 * @author Code Generator
 * @date Created in 2022-06-21 14:58:05
 */

@Data
@NoArgsConstructor
@TableName("tbl_login_info")
@EqualsAndHashCode(callSuper = true)
public class LoginInfo extends Model<LoginInfo> {
    private static final long serialVersionUID = 1L;

    /**
     * 登陆id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @TableField(value = "id")
    private Long id;
    /**
     * 手机号
     */
    @TableField(value = "mobile")
    private String mobile;
    /**
     * 登陆密码
     */
    @TableField(value = "pwd")
    private String pwd;
    /**
     * 用于密码加密的salt
     */
    @TableField(value = "salt")
    private String salt;
    /**
     * 汇掌柜商户号
     */
    @TableField(value = "mcht_no")
    private String mchtNo;
    /**
     * 状态(0-正常 1-禁用 2-删除)
     */
    @TableField(value = "state")
    private Integer state;
    /**
     * 姓名
     */
    @TableField(value = "name")
    private String name;
    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;
    /**
     * 密码更改时间
     */
    @TableField(value = "pwd_update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date pwdUpdateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

}
